package net.sf.calibur.ai.bt.composite;

import net.sf.calibur.ai.bt.BTNode;
import net.sf.calibur.ai.bt.BTNodeAdapter;

public class SelectorNode extends BTNodeAdapter {
	
	public SelectorNode(BTNode parent) {
		super(parent);
	}
	
	@Override
	public boolean perform() {
		for (BTNode child : children) {
			if (child.perform()) {
				return true;
			}
		}
		
		return false;
	}
}
